// let buffer = Buffer.from('寻');
// console.log(buffer)
// // node 只支持utf8  iconv-lite包可以把二进制gbk 转为utf8
// console.log(buffer.toString('base64'))
// // 1b = 8bit
//
// let r = (255).toString(16)
// console.log(r)
// let buffer1 = Buffer.alloc(3);
// console.log(buffer1)
//
// let b3 = Buffer.from([255,255,255])
// console.log(b3)
// b3.forEach(b=>{
//   console.log(b)
// })

let b1 = Buffer.from('猪')
let b2 = Buffer.from('儿')

console.log(b1+b2)
let big = Buffer.alloc(6)

b1.copy(big,0,0,3);
b2.copy(big,3,0,3)
console.log(big)
let buf = Buffer.concat([b1,b2]);
console.log(buf)
